package com.iciot.service;

import com.iciot.domain.User;

import java.util.ArrayList;

public interface UserService {
    void addUser(User user) throws Exception;
    void deleteUser(int id) throws Exception;
    void updateUser(User user) throws Exception;
    User getById(int id) throws Exception;
    User getByName(String name) throws Exception;
    ArrayList<User> getAll() throws Exception;
}
